package cn.stylefeng.guns.modular.gridsystem.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 设备表
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BizDeviceParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Integer id;

    /**
     * 产品型号
     */
    @NotNull(message = "产品型号不能为空",groups = {add.class,edit.class})
    private String productModel;

    /**
     * 产品厂商
     */
    @NotNull(message = "产品厂商不能为空",groups = {add.class,edit.class})
    private String productVendor;

    /**
     * 所属站点
     */
    @NotNull(message = "所属站点不能为空",groups = {add.class,edit.class})
    private Integer stationId;

    /**
     * 设备名称
     */
    @NotNull(message = "设备名称不能为空",groups = {add.class,edit.class})
    private String deviceName;

    /**
     * 生产日期
     */
    private String createdAt;

    private Integer industryId;

    /**
     * 设备正面图
     */
    private String fileName;

    /**
     * 设备反面图
     */
    private String backFileName;

    /**
     * 设备铭牌图
     */
    private String nameplateFileName;

    private Long titleFileId;

}
